package com.aliang.shopping.model.vo.orders;


import com.aliang.shopping.model.vo.address.AddressVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@ApiModel(description = "订单展示对象")
public class OrdersVO implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 订单信息id
     */
    @ApiModelProperty("订单信息id")
    private Long id;
    /**
     * 支付金额
     */
    @ApiModelProperty("支付金额")
    private BigDecimal payPrice;
    /**
     * 下单时间
     */
    @ApiModelProperty("下单时间")
    private LocalDateTime createTime;

    /**
     * 支付时间
     */
    @ApiModelProperty("pay_time")
    private LocalDateTime payTime;
    /**
     * 收货信息
     */
    @ApiModelProperty("收货信息")
    private AddressVO address;

    /**
     * 支付类型，1支付宝
     */
    @ApiModelProperty("pay_type")
    private Integer payType;

    /**
     * 订单状态
     */
    @ApiModelProperty("status")
    private Integer status;


    /**
     * 订单列表
     */
    @ApiModelProperty("订单列表")
    private List<OrdersItemVO> ordersItemVOS;

}
